//
//  SRSilenceClockTableViewCell.h
//  SportRing
//
//  Created by elwin on 11/4/14.
//  Copyright (c) 2014 HotOne. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SRAlarm.h"
#import "SRAlarm+Cate.h"

@class SRSilenceClockTableViewCell;

@interface SRSilenceClockTableViewCellModel : NSObject<NSCopying>

@property (nonatomic, strong)NSNumber *alarmId;
@property (nonatomic, copy)NSString *time;
@property (nonatomic, retain) NSNumber * monday;
@property (nonatomic, retain) NSNumber * tuesday;
@property (nonatomic, retain) NSNumber * wednesday;
@property (nonatomic, retain) NSNumber * thursday;
@property (nonatomic, retain) NSNumber * friday;
@property (nonatomic, retain) NSNumber * saturday;
@property (nonatomic, retain) NSNumber * sunday;
@property (nonatomic, assign)BOOL openSwitch;
@property (nonatomic, assign)CLOCK_RING_TYPE ringType;

+ (SRAlarm *)toSRAlarm:(SRSilenceClockTableViewCellModel *)model;
+ (NSMutableArray *)selectedWeekDays:(SRSilenceClockTableViewCellModel *)model;
@end

@protocol SRSilenceClockTableViewCellDelegate <NSObject>

@optional
- (void)switchOn:(BOOL)on cell:(SRSilenceClockTableViewCell *)cell;

@end

@interface SRSilenceClockTableViewCell : UITableViewCell

@property (nonatomic, strong)SRSilenceClockTableViewCellModel *model;

@property (nonatomic, weak)IBOutlet id<SRSilenceClockTableViewCellDelegate> srSilenceDelegate;

- (void)setSRSilenceClockTableViewCellData:(SRSilenceClockTableViewCellModel *)model;

- (void)setCustomWeekDay:(SRSilenceClockTableViewCellModel *)weekDays openSwitch:(BOOL)open;


@end
